Reprice Product

Trigger repricing for a single product and send to all pricing routes (same as CLI command). Supports both GET and POST methods.

HTTP: POST | GET /products/{productId}/reprice

Path parameters

NameTypeRequiredDescriptionExample
productIdintegeryesProduct ID to reprice.24

Query parameters

NameTypeRequiredDescriptionExample
domainstringyesDomain name as configured in DynPricing.profi-parfemy.cz
forcebooleannoForce cache refresh before repricing (default: false).true
strategy_idintegernoOptional specific strategy ID to use.1

Notes

Sample request

curl -X POST https://admin.elpricing.com/api/products/{productId}/reprice
  -H "Authorization: ApiKey YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{"domain":"profi-parfemy.cz","force":true}'

Interactive call

Path parameters

Note: This endpoint uses path parameters. Use the "Open API Endpoint" button above to test it properly.

Queue workflow

Tasks are persisted to var/api_queue/tasks.json. Process them with:

php go.php cron:list\nphp go.php cron:go

Logs are written to var/api_queue/logs/{task_id}.log.